import React from 'react'


import {connect} from 'react-redux'
class News extends React.Component {
  render() {
      let {msg,mynews}=this.props
    return (
      <div>

          <div>  {msg}----{mynews}</div>
        <h2>News</h2>
      </div>
    )
  }
}

const  mapStateToProps=({NewsReducer})=>{
   


    return  {
        mynews:'我是新闻',
        ...NewsReducer
    }

}

const  mapDispatchToProps=()=>{
    return {

    }

}


export default connect(mapStateToProps,mapDispatchToProps)(News);
